﻿
using KinonekoSoftware.Foundation.Languages;


namespace KinonekoSoftware.Foundation.Markups
{
    public class TextExtension  : MarkupExtension
    {
        public TextExtension(){}
        public TextExtension(string id) => LanguageID = id;

        public override object ProvideValue(IServiceProvider serviceProvider)
        {
            return LanguageManager.GetText(LanguageID);
        }
        
        public string LanguageID { get; set; }
    }
}